package org.jeecg.modules.yw.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 考勤
 * @Author: jeecg-boot
 * @Date:   2025-04-11
 * @Version: V1.0
 */
@Data
@TableName("attendance")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="attendance对象", description="考勤")
public class Attendance implements Serializable {
    private static final long serialVersionUID = 1L;

	/**考勤id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "考勤id")
    private String id;
	/**用户id*/
	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private String userid;
	/**考勤日期*/
	@Excel(name = "考勤日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "考勤日期")
    private Date attenddate;
	/**考勤状态(0: 正常 1：病假 2：迟到 3：事假 4：年假 5：产假 6：婚假)*/
	@Excel(name = "考勤状态(0: 正常 1：病假 2：迟到 3：事假 4：年假 5：产假 6：婚假)", width = 15)
    @ApiModelProperty(value = "考勤状态(0: 正常 1：病假 2：迟到 3：事假 4：年假 5：产假 6：婚假)")
    private Integer attendtype;
	/**创建时间*/
	@Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createtime;
}
